﻿using Adnc.Application.Shared.Dtos;
using System;
using System.Collections.Generic;
using System.Text;

namespace WYT.Ord.Application.Contracts.Dtos.Order
{
    /// <summary>
    /// ERP回调
    /// </summary>
    public class ERPCallbackDto : IInputDto
    {
        /// <summary>
        /// 内部单号
        /// </summary>
        public int o_id { get; set; }
        /// <summary>
        /// 物流单号
        /// </summary>
        public string l_id { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string so_id { get; set; }

        /// <summary>
        /// 物流公司编码
        /// </summary>
        public string lc_id { get; set; }
        /// <summary>
        /// 物流公司名称
        /// </summary>
        public string logistics_company { get; set; }
        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime send_date { get; set; }

        /// <summary>
        /// 商品列表
        /// </summary>
        public List<Goods> items { get; set; }
    }

    /// <summary>
    /// 商品信息
    /// </summary>
    public class Goods
    {
        /// <summary>
        /// 子单号
        /// </summary>
        public int oi_id { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string sku_id { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int qty { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 订单商品明细主键
        /// </summary>
        public string outer_oi_id { get; set; }
        /// <summary>
        /// 线上单号
        /// </summary>
        public string so_id { get; set; }
    }
}
